<template>
	<view class="order-item"
		@click="$u.route(`/pages/order_detail/orderDetail?taskCode=${item.task_code}`)">
		<view class="order-item-icon">
			<u-image width="100%" height="100%" border-radius="12"  :src="orderView(orderDataItem.task_code.substr(0,2)).icon"/>
		</view>
		<view class="order-info">
			<view class="order-info-top">
				<view class="order-type">
					<text class="type">{{orderView(orderDataItem.task_code.substr(0,2)).title}}</text>
				</view>
				<view class="order-number">
					编号:{{orderDataItem.task_code}}
				</view>
				<view class="order-number">
					{{orderDataItem.created_at}}
				</view>
			</view>
		</view>
		<button class="order-btn" @click="$u.route(`/pages_lawyer/lawyer_evaluation/lawyerEvaluation?taskCode=${orderDataItem.task_code}&evaluateId=${orderDataItem.id}`)">立即评价</button>
	</view>
</template>

<script>
	import mixin from "../../mixin.js";
	export default {
		mixins:[mixin],
		data(){
			return {
				
			}
		},
		props:{
			orderDataItem:{
				type:Object
			}
		}
	}
</script>

<style scoped lang="scss">
	@import "./orderItem.scss";
</style>
